<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios@0.12.0/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script>
    <style>
        .香蕉 {
            color: rgb(225, 65, 105);

        }

        .c {
            font-size: 44px;
            background-color: seagreen;
        }
    </style>
</head>

<body>
    <div id="app">
        <p v-bind:class="{香蕉: 苹果, c: d}">看我</p><br>
        <p v-bind:class="e">在看我</p><br>
        <p v-bind:class="[ac,ec]">然后看我</p>
    </div>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                苹果: true,
                d: true,
                e: {
                    香蕉: true,
                    c: true
                },
                ac: "香蕉",
                ec: "c"
            }
        });
    </script>

    <div id="app2">
        <div v-bind:style="{color: yanse, 'font-size':daxiao + 'px'}">演示1</div>
        <div v-bind:style="show">演示2</div>
        <div v-bind:style="[t,t1]">演示3</div>
    </div>

    <script>
        var app2=new Vue({
            el:"#app2",
            data:{
                yanse:"red",
                daxiao:50,
                show:{
                    color:"blue",
                    'font-size':"34px"
                },
                t:{
                    color:"purple"
                },
                t1:{
                    'font-size':"33px"
                }
            }
        });
    </script>
</body>

</html>